<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<body class="hold-transition skin-blue sidebar-mini">
<section class="content">
    <div class="row" style="margin-top: 64px">
        <div class="col-xs-10 col-xs-offset-1">
                <table id="t1" class="t1">
                    <thead style="display: table-header-group">
                    <tr>
                        <td colspan="13">
                            <img th:src="@{/img/logo3.jpg}" width="64px" height="40px" style="margin-top: -30px">
                            <div style="display: inline-block;margin-top: 5px;margin-left: 20px">
                                <span style="letter-spacing: 24px;display: block;line-height: 20px;font-size: 12px ">&nbsp;辽宁忠旺机械设备制造有限公司</span>
                                <span style="display: block;font-size: 12px;line-height: 20px;font-size: 12px">Liaoning Zhongwang Machinery Equipment Manufacturing Co., Ltd</span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="13" style="font-size: 16px;letter-spacing: 4px;">
                            <span>制作件清单</span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="width: 8%;font-size: 12px">项目编号</td>
                        <td style="width: 10%;font-size: 12px">
                            [[${selectOne.proCode}]]
                        </td>
                        <td style="width: 8%;font-size: 12px">项目名称</td>
                        <td colspan="3" style="width: 30%;font-size: 12px">
                            [[${selectOne.proName}]]
                        </td>
                        <td style="width: 8%;font-size: 12px">项目数量</td>
                        <td style="width: 6%;font-size: 12px">
                            [[${selectOne.proNum}]]
                        </td>
                        <td style="width: 6%;font-size: 12px">类型</td>
                        <td style="width: 9%;font-size: 12px">
                            [[${selectOne.special}]]
                        </td>
                        <td style="width: 6%;font-size: 12px">部分</td>
                        <td style="width: 9%;font-size: 12px">
                            [[${selectOne.part}]]
                        </td>
                    </tr>
                    <tr th:if="${selectOne.sheetType== 1}">
                        <td style="width: 4%;">序号</td>
                        <td colspan="4">图号</td>
                        <td colspan="2">图名</td>
                        <td style="width: 8%">数量</td>
                        <td colspan="2">制作件类型</td>
                        <td colspan="3">备注</td>
                    </tr>
                    <tr th:if="${selectOne.changeStatus== 0}">
                        <td style="width: 4%;">序号</td>
                        <td colspan="4">图号</td>
                        <td colspan="2">图名</td>
                        <td style="width: 8%">数量</td>
                        <td colspan="2">制作件类型</td>
                        <td colspan="3">备注</td>
                    </tr>
                    <tr th:if="${selectOne.sheetType== 2}">
                        <td></td>
                        <td style="width: 4%;">序号</td>
                        <td colspan="4">图号</td>
                        <td colspan="1">图名</td>
                        <td style="width: 8%">数量</td>
                        <td colspan="1">制作件类型</td>
                        <td colspan="1">操作类型</td>
                        <td colspan="2">备注</td>
                        <td colspan="2">变更原因</td>
                    </tr>
                    </thead>
                    <tbody th:if="${selectOne.sheetType== 1}">
                    <tr th:each="plan : ${selectAll}">
                        <td th:text="${planStat.count}">1</td>
                        <td style="text-align:left;" colspan="4" th:text="${plan.drawNo}"></td>
                        <td colspan="2" th:text="${plan.drawName}"></td>
                        <td th:text="${plan.drawNum}"></td>
                        <td colspan="2" th:text="${plan.makeType}"></td>
                        <td colspan="3" th:text="${plan.remark}"></td>
                    </tr>
                    </tbody>

                    <tbody th:if="${selectOne.changeStatus== 0}">
                    <tr th:each="plan : ${selectAll}">
                        <td th:text="${planStat.count}">1</td>
                        <td style="text-align:left;" colspan="4" th:text="${plan.drawNo}"></td>
                        <td colspan="2" th:text="${plan.drawName}"></td>
                        <td th:text="${plan.splitNum}"></td>
                        <td colspan="2" th:text="${plan.makeType}"></td>
                        <td colspan="3" th:text="${plan.remark}"></td>
                    </tr>
                    </tbody>


                    <tbody th:if="${selectOne.sheetType== 2}">
                    <tr th:each="plan : ${selectAll}">
                        <td th:if="${planStat.index == 0}" th:rowspan="${planStat.size}">更改前</td>
                        <td th:text="${planStat.count}">1</td>
                        <td style="text-align:left;" colspan="4" th:text="${plan.drawNo}"></td>
                        <td colspan="1" th:text="${plan.drawName}"></td>
                        <td th:text="${plan.drawNum}"></td>
                        <td colspan="1" th:text="${plan.makeType}"></td>
                        <td colspan="1"></td>
                        <td colspan="2" th:text="${plan.remark}"></td>
                        <td colspan="2"></td>
                    </tr>
                    <tr th:each="plan : ${selectAll}" th:class="${planStat.index == 0 ? 'after-tr' : ''}">
                        <td th:if="${planStat.index == 0}" th:rowspan="${planStat.size}">更改后</td>
                        <td th:text="${planStat.count}">1</td>
                        <td colspan="4" th:text="${plan.afterDrawNo}"></td>
                        <td colspan="1"th:text="${plan.afterDrawName}"></td>
                        <td th:text="${plan.afterDrawNum}"></td>
                        <td colspan="1"th:text="${plan.afterMakeType}"></td>
                        <td colspan="1"th:th:text="${plan.technologyChange==3?'新增': (plan.technologyChange==2?'删除': (plan.technologyChange==1?'修改':''))}"></td>
                        <td colspan="2" th:text="${plan.afterRemark}"></td>
                        <td colspan="2" th:text="${plan.changeReason}"></td>
                    </tr>
                    </tbody>
                </table>
            <div class="row" style="font-size: 14px;line-height: 200%;">
                <div class="col-xs-3" style="padding-left: 0;font-size: 12px">提报人：[[${selectOne.createNameOne}]]&nbsp;&nbsp;[[${#dates.format(selectOne.createTime,'yyyy.MM.dd')}]]</div>
                <div class="col-xs-3" style="font-size: 12px">联系电话：[[${selectOne.postTel}]]</div>
                <div class="col-xs-3" style="font-size: 12px">审核：<span style="font-size: 12px">[[${selectOne.reviewer}]]&nbsp;&nbsp;[[${#dates.format(selectOne.rtime,'yyyy.MM.dd')}]]</span></div>
                <div class="col-xs-3" style="font-size: 12px">批准：<span style="font-size: 12px">[[${selectOne.verifier}]]&nbsp;&nbsp;[[${#dates.format(selectOne.vtime,'yyyy.MM.dd')}]]</span></div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">


</script>
</body>
</html>
